<template>
  <div class="item">
    <div class="header">
      <div class="title">{{data.title}}</div>
      <div class="date">{{data.createdTime}}</div>
    </div>
    <div class="content">
      {{data.content}}
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Vue, Prop } from "vue-property-decorator";

@Component({
  components: {},
})
export default class Home extends Vue {
  @Prop({
    type: Object,
    default: () => {
      return {};
    },
  })
  data!: {};

  created(){
    
  }
}
</script>

<style lang="scss" scoped>
.item {
  width: 100%;
  border: 1px solid #ccc;
  background-color: #fff;
  .header {
    // height: 30px;
    .title {
      font-size: 15px;
      padding: 5px 7px;
      font-weight: bolder;
      position: relative;
      &::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: #ccc;
      }
    }
    .date {
      color: #bbb;
      padding: 5px 7px;
    }
  }
  .content {
    height: 270px;
    padding: 3px 7px;
    overflow-y: auto;
  }

}
</style>
